<% @insertion ||= false
   unless @insertion %>
<li id="freshman_in_house_<%= freshman_in_house.id.to_s %>">
<% end %>
<% slated_to_leave = !freshman_in_house.current_house_visit.exit.nil? %>
<%= freshman_in_house.full_name %>
<% unless slated_to_leave %>
<%= link_to_function "check out",
                     "toggle_form(#{freshman_in_house.id},'exit_form', 'check_out_link_#{freshman_in_house.id}', 'check out')",
                     { "id" => "check_out_link_#{freshman_in_house.id}"}%>
<%= link_to_remote "jaunt out", {:url => {:action => 'insert_jaunts_menu'},
                                 :update => "jaunt_depart_form_placeholder_#{freshman_in_house.id}",
                                 :success => "toggle_form(#{freshman_in_house.id},'jaunt_depart_form', 'jaunt_depart_link_#{freshman_in_house.id}', 'jaunt out')" },
                                 { "id" => "jaunt_depart_link_#{freshman_in_house.id}"}%>
<%= link_to_function "overnight",
                     "toggle_form(#{freshman_in_house.id},'overnight_form', 'overnight_link_#{freshman_in_house.id}', 'overnight')",
                     { "id" => "overnight_link_#{freshman_in_house.id}"}%>
<div class="dateline">In since <%= freshman_in_house.current_house_visit.entrance.effective_at %></div>
<%= render :partial => 'confirmation_form', :locals => {:freshman_id => freshman_in_house.id,
                                                        :form_type => 'exit_form',
                                                        :action => :house_exit,
                                                        :datetime_label => 'Effective at:',
                                                        :submit_text => 'Check Out'} %>
<% destination_field_tag = content_tag('label','Destination:', :for => "destination_#{freshman_in_house.id}") +
text_field_tag('destination', nil, { :id => "destination_#{freshman_in_house.id}"}) %>
<%= javascript_tag "Element.replace('exit_form_placeholder_#{freshman_in_house.id}', '#{destination_field_tag}')" %>
<%= render :partial => 'confirmation_form', :locals => {:freshman_id => freshman_in_house.id,
                                                        :form_type => 'jaunt_depart_form',
                                                        :action => :jaunt_depart,
                                                        :datetime_label => 'Effective at:',
                                                        :submit_text => 'Jaunt Depart'} %>
<%= render :partial => 'confirmation_form', :locals => {:freshman_id => freshman_in_house.id,
                                                        :form_type => 'overnight_form',
                                                        :action => :overnight,
                                                        :datetime_label => 'Wake time:',
                                                        :submit_text => 'Overnight'} %>
<% else %>
<div class="dateline">Slated to leave at <%= freshman_in_house.current_house_visit.exit.effective_at %></div>
<% end %>
<% unless @insertion %>
</li>
<% end %>